class Employee {
	String id
	String name

	def getProperty(String property) {
		"get value from ${property}"
	}
}

def employee = new Employee(id: '00003', name: 'Rose')
println employee.name
println employee.age

// Sample
def xml = '''
	<persons>
		<person>
			<name>zhang3</name>
			<age>20</age>
		</person>
	</persons>
'''

def persons = new XmlSlurper().parseText(xml)
println persons.getClass()
println persons.person.name.text()